package com.we.wecc.us.mid.model.in;

import com.we.wecc.us.db.model.UserAddress;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.BeanUtils;

@ApiModel(value = "收获地址-入")
public class UserAddressIn {

    @ApiModelProperty("id,修改时必传")
    private Long id;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("用户id")
    private Long userId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public UserAddress toUserAddress(){
        UserAddress ua = new UserAddress();
        BeanUtils.copyProperties(this,ua);
        return ua;
    }
}
